﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ecreate.Model
{
    public class Order
    {
        private int id;
        private string orderID;
        private string kickOrderID;
        private int sn;
        private int times;
        private string sellAddress = String.Empty;
        private string sellPhoneNumber = String.Empty;
        private int product = 0;
        private decimal price;
        private string custName = String.Empty;
        private string custAddress = String.Empty;
        private string custPhoneNumber = String.Empty;
        private string payAccount = String.Empty;
        private DateTime payDate;
        private string customerid = String.Empty;
        private string province = String.Empty;
        private string city = String.Empty;
        private string county = String.Empty;
        private string productClass1 = String.Empty;
        private string productClass2 = String.Empty;
        private string isCheck = String.Empty;
        private int checkID;
        private string productName = String.Empty;
        private string isCheckName = String.Empty;
        private DateTime inputDate;
        private string qq;
        private DateTime checkDate;

        // Instantiate empty Order for inserting
        public Order() { }

        // Retrieve Order with Id for updating
        public Order(int id)
        {
            this.id = id;
        }

        #region Public Properties

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        public string OrderID
        {
            get { return orderID; }
            set { orderID = value; }
        }

        public string KickOrderID
        {
            get { return kickOrderID; }
            set { kickOrderID = value; }
        }

        public int SN
        {
            get { return sn; }
            set { sn = value; }
        }

        public int Times
        {
            get { return times; }
            set { times = value; }
        }

        public string SellAddress
        {
            get { return sellAddress; }
            set { sellAddress = value; }
        }

        public string SellPhoneNumber
        {
            get { return sellPhoneNumber; }
            set { sellPhoneNumber = value; }
        }

        public int Product
        {
            get { return product; }
            set { product = value; }
        }

        public decimal Price
        {
            get { return price; }
            set { price = value; }
        }

        public string CustName
        {
            get { return custName; }
            set { custName = value; }
        }

        public string CustAddress
        {
            get { return custAddress; }
            set { custAddress = value; }
        }

        public string CustPhoneNumber
        {
            get { return custPhoneNumber; }
            set { custPhoneNumber = value; }
        }

        public string PayAccount
        {
            get { return payAccount; }
            set { payAccount = value; }
        }

        public DateTime PayDate
        {
            get { return payDate; }
            set { payDate = value; }
        }

        public string CustomerID
        {
            get { return customerid; }
            set { customerid = value; }
        }

        public string Province
        {
            get { return province; }
            set { province = value; }
        }

        public string City
        {
            get { return city; }
            set { city = value; }
        }

        public string County
        {
            get { return county; }
            set { county = value; }
        }

        public string ProductClass1
        {
            get { return productClass1; }
            set { productClass1 = value; }
        }

        public string ProductClass2
        {
            get { return productClass2; }
            set { productClass2 = value; }
        }

        public string IsCheck
        {
            get { return isCheck; }
            set { isCheck = value; }
        }

        public int CheckID
        {
            get { return checkID; }
            set { checkID = value; }
        }

        public string ProductName
        {
            get { return productName; }
            set { productName = value; }
        }

        public string IsCheckName
        {
            get { return isCheckName; }
            set { isCheckName = value; }
        }

        public DateTime InputDate
        {
            get { return inputDate; }
            set { inputDate = value; }
        }

        public string QQ
        {
            get { return qq; }
            set { qq = value; }
        }

        public DateTime CheckDate
        {
            get { return checkDate; }
            set { checkDate = value; }
        }
        #endregion
    }
}
